<?php
session_start();
error_reporting(E_ALL);
$_SERVER['DOCUMENT_ROOT'] . "/public_html/index.php";
if (isset($_SESSION['usr']) && isset($_SESSION['pswd'])) {
    header("Location: content.php");
}
?>
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="css/style.css">
        <link rel="stylesheet" type="text/css"
              href="http://fonts.googleapis.com/css?family=Roboto:300|Roboto Condensed|Orbitron:900,700">
<!--        <link rel="stylesheet" type="text/css"
              href="http://fonts.googleapis.com/css?family=Roboto:300|Roboto Condensed|Orbitron:900,700">-->
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
        <meta charset="UTF-8">
        <title>Hostel Admin</title>
    </head>
    <body>
    <center>

        <form method="post" action="login.php" >
            <!– in this example I link it with login.php to check the password & username–>

            <table class="login">
                <tr><td>Usuario:</td><td><input type="text" name="usr" style="padding:5px; border-radius: 5px; border-style: solid; border-width: 1px; border-color: #3875d7;"></td></tr>
                <tr><td>Password:</td><td><input type="password" name="pswd" style="padding:5px; border-radius: 5px;border-style: solid;border-width: 1px;border-color: #3875d7;"></td></tr>
                <tr><td colspan="2"><center><input type="submit" name="login" value="Entrar" class="btnSearch" style="width: 40%">
                        <input type="reset" name="reset" value="Limpiar" class="btnSearch" style="width: 40%"></center></td></tr>
            </table>
        </form>
    </center>
</body>
</html>